public class Test {
    public static void main(String[] args) {
        //
    }
}

class ListNode {
      int val;
      ListNode next;
      ListNode(int x) {
          val = x;
          next = null;
      }
}
class Solution {
    public boolean hasCycle(ListNode head) {

    }
}